package thinkingJava.chapter13;

public class WhitherStringBuilder {

	public String implicit(String[] fields) {
		String result = "";
		for (int i = 0; i < fields.length ; i++) {
			result += fields[i];
		}
		return result;
	}

	public String explicit(String[] fields) {
		StringBuilder sb = new StringBuilder();
		for (String s : fields) {
			sb.append(s);
		}
		return sb.toString();
	}

}
